import java.io.*;

class MapFilter implements FilenameFilter
{
	String ext;

	MapFilter(String ext)
	{
		this.ext = ext;
	}

	public boolean accept(File dir,String name)
	{
		return name.endsWith(ext);
	}
}